import "./Load.scss"

const Load = memo(({ percent, name, startAnimat = false }: { percent: number, name: string, startAnimat?: boolean }) => {
  return (
    // @ts-ignore
    <div className="load-com" style={{ "--height": startAnimat ? percent + 1 + "%" : "0%" }}>
      <p>{name}</p>
      <div className="load"></div>
      <p className="precent">{percent}%</p>
    </div>
  )
})

export default Load
